﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Example3_CSharp
{
    class CRectangle
    {
        int w, h;
        public CRectangle()
        {
            w = 5;
            h = 5;
        }
        public CRectangle (int a, int b)
        {
            w=a;
            h=b;
        }
        public int area ()
        {
            return (w*h);
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            CRectangle recta= new CRectangle(3,4);
            CRectangle rectb= new CRectangle();
            Console.WriteLine (" recta:{0}", recta.area ());
            Console.WriteLine (" rectb:{0}", rectb.area ());
        }
    }
}